import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {SharedModule} from "../../shared/shared.module";

import {MyGroupListComponent} from "./my-group-list/my-group-list.component";
import {MyGroupDetailComponent} from "./my-group-detail/my-group-detail.component";

const routes: Routes = [
        {path: '', redirectTo: 'list'},
        {path: 'list', component: MyGroupListComponent},
        {path: 'detail/:code', component: MyGroupDetailComponent}
];

@NgModule({
  imports: [
    SharedModule.forRoot(),
    RouterModule.forChild(routes)
  ],
  declarations: [
    MyGroupListComponent,
    MyGroupDetailComponent
  ],
  providers: []
})
export class MyModule {
}
